<template>
    <div>
        <!-- 面包屑导航 -->
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: '/adminCharging/AdminElctricPile' }">管理员充电桩列表</el-breadcrumb-item>
            <el-breadcrumb-item>管理员充电桩价格设置</el-breadcrumb-item>
        </el-breadcrumb>

        <el-form :inline="true" style="margin-top: 20px;">
            <el-form-item>
                <el-button size="mini" type="primary" icon="el-icon-back" @click="toElectricPile()">返回</el-button>
            </el-form-item>
        </el-form>

        <el-tabs v-model="activeName" style="margin-top: 12px;">
            <el-tab-pane label="充电桩价格类型" name="one">
                <price-type></price-type>
            </el-tab-pane>
            <el-tab-pane label="设置充电桩价格" name="first">
                <station-price></station-price>
            </el-tab-pane>
        </el-tabs>

    </div>
</template>

<script>
import priceType from './AdminPriceType.vue'
import StationPrice from './AdminStationPrice.vue'
export default {
    data() {
        return {
            stationId: this.$route.query.id,
            activeName: 'one'
        }
    },
    // 注册组件
    components: {
        priceType,
        StationPrice
    },
    methods: {
        // 返回上一页
        toElectricPile() {
            this.$router.go(-1)
        }
    }
}
</script>

<style></style>